/*
 * @Author: 无聊 7989314+Hwz1997@user.noreply.gitee.com
 * @Date: 2025-09-03 01:12:33
 * @LastEditors: 无聊 7989314+Hwz1997@user.noreply.gitee.com
 * @LastEditTime: 2025-10-24 15:28:37
 * @FilePath: \keep_motion_api\routes\sport.route.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const express = require('express');
const router = express.Router();

const { courses, progress } = require('@/controllers/admin/course');
router.get('/courses', courses.getCourses);
router.get('/courses/:id', courses.getCourseDetail);
router.post('/courses', courses.createCourses);
router.put('/courses/:id', courses.updateCourses);
router.delete('/courses/:id', courses.deleteCourses);
router.patch('/courses/publish/:id', courses.publishCourses);
router.get('/courses/search', courses.searchCourses);
router.get('/courses/stats', courses.getCoursesStats);

router.get('/progress', progress.getProgress);
router.put('/progress/:id', progress.updateProgress);
router.get('/progress/analytics', progress.getProgressAnalytics);


module.exports = router;